@import '../../../assets/scss/common.scss';

@import "~taro-ui/dist/style/components/button.scss";
@import "~taro-ui/dist/style/components/loading.scss";
@import "~taro-ui/dist/style/components/icon.scss";

.page{
    height: 100vh;
    background-color: $page-background-color;
    display: flex;
    flex-direction: column;
}

.header{
    background-color: $color-primary;
    height: 350px;
    border-radius: 0 0 30px 30px;
}

.page-body{
    margin-top: -85px;
}

.balance{
    font-size: 50px;
}

.balance-detail{
    display: flex;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba($color: #fff, $alpha: 0.3);
    
    .item{
        flex: 1;
        text-align: center;
        .name{
            font-size: 24px;
            color: #f8f8f8;
        }
        .amount{
            font-size: 40px;
        }
    }
}

.recharge-options{
    background-color: #fff;
    border-radius: 20px;
    padding: $space;
    .wrap{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap:$space - 5px;
        .option{
            background-color: #f6f9fe;
            padding-top: 90%;
            border-radius: 10px;
            position: relative;

            &.selected{
                background-color: $color-primary;
                
                .amount, .unit, .reward{
                    color: #fff !important;
                }

            }

            .content{
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                text-align: center;
                white-space: nowrap;

                .amount{
                    color: $color-primary;
                    font-size: 50px;
                }

                .unit{
                    color: $color-primary;  
                }

                .reward{
                    color: #a4a4a4;
                }
            }
        }
    }
    
}